{include file="biz/biz_header.html"} 

{include file="biz/biz_nav.html"}
<div class="wrap clearfix wb biz-wrap">
{include file="biz/biz_info_header.html"}
<div class="biz_index_box clearfix">

	<div class="p10 clearfix">
			<style type="text/css">
				ul.commit_list{ padding:0px 10px; font-size:12px; }
				ul.commit_list h2{ font-size:12px; color:#999;}
				ul.commit_list li{ padding:10px; display:block; }
				ul.commit_list li.gray{ background:#f2f2f2;}
			</style>			
			<div class="blank"></div>
			<a class="biz_pub_btn f_r" href="{url x="biz" r="youhui#publish"}">发布优惠券</a>
			<div class="blank"></div>
			<table cellspacing="0" cellpadding="0" border="0" class="data-table">
				{foreach from=$youhui_list item=youhui_item key=key}
				<tr {if $key mod 2 eq 0}class="gray"{/if}>
					<td>
					<h2> 
					{if $youhui_item.is_effect eq 1 and $youhui_item.publish_wait eq 0}<a href='{url x="store" r="fdetail" p="id=$youhui_item.id"}' target="_blank">{/if}
					{$youhui_item.name}
					[{if $youhui_item.is_effect eq 0 or $youhui_item.publish_wait eq 1}未上架{else}已上架{/if}]{if $youhui_item.is_effect eq 1 and $youhui_item.publish_wait eq 0}</a>{/if} 
					</h2>
					{if $youhui_item.is_effect eq 0 or $youhui_item.publish_wait eq 1}
					<a href="{url x="store" r="fdetail" p="id=$youhui_item.id&preview=1"}" target="_blank">预览</a>
					{/if}
					{if $youhui_item.publish_wait eq 1}
					<a href="{url x="biz" r="youhui#modify" p="id=$youhui_item.id"}">编辑</a>
					{/if}
					
					{if $youhui_item.is_effect eq 1 and $youhui_item.send_type gt 0  and $youhui_item.publish_wait eq 0}
					<div class="blank"></div> 
					下载量：{$youhui_item.sms_count}   										
					到店消费：{$youhui_item.confirm_count}  
					{$LANG.COUPON_CONFIRM_COUNT}：{$deal_item.confirm_count}	 										
					[<a href="{url x="biz" r="youhui#youhui_list" p="id=$youhui_item.id"}">优惠券短信下载日志</a>]
					{/if}
					</td>			
				</tr>
				{/foreach}
			</table>
			<div class="blank"></div>
			<div class="pages">
				{$pages}
			</div>
		
		
	</div>
	<div class="blank"></div>
</div><!--end biz_index_box-->

</div>
{include file="biz/biz_footer.html"} 